package com.abbas.smartCity.ui.parkingWhere;

import android.view.View;

import androidx.cardview.widget.CardView;

import com.abbas.smartCity.R;
import com.abbas.smartCity.base.BaseFragment;


public class ParkingMineFragment extends BaseFragment {

    private CardView mycar;
    private CardView adv;


    @Override
    protected int getLayoutId() {
        return R.layout.fragment_parking_mine;
    }

    @Override
    protected void initView() {
        mycar = (CardView) rootView.findViewById(R.id.mycar);
        adv = (CardView) rootView.findViewById(R.id.adv);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initEvent() {
        mycar.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(AddCarActivity.class);
            }
        });

        adv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(ParkingAdvActivity.class);
            }
        });
    }
}